home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
tcp_ip
/
jnos
/
docs110
/
autoexec.nos
< prev
next >
Wrap
Text File
|
1994-02-28
|
8KB
|
303 lines
#this file should be in \autoexec.nos
#set the minimum memory alloc size; attempt to keep fragmentation to a minimum
mem minalloc 64
#if you only have asy, you don't need ibufs. set nibufs=0
me ibufsize 600
me nibufs 20
watchdog yes
mem debug on
#set some default ax.25 callsigns
#mycall is used for ip packets
ax25 mycall wg7j-3
#for bbs connections
ax25 bbscall wg7j
#for keybd-to-keybd users connect to the ttycall
ax25 ttycall wg7j-2
#set our host name and ip-address
host wg7j.ampr.org.
ip address 44.26.1.20
#AX.25 SETUP
#these are the defaults used for all interfaces attached lateron.
#you can set them per interface after they are attached
#by using the 'iconfig <iface> ax25 <command>' format, see later
ax25 version 2
ax25 maxframe 1
#max retry is 5 (conservative...)
ax25 retry 5
ax25 window 1024
#initial round trip time estimate is 4 seconds
ax25 irtt 4000
ax25 timer linear
#no keep-alive polling
ax25 t3 0
#link disconnected after 10 minutes of idle time
ax25 t4 600
#broadcast every 10 minutes
ax25 bcinterval 600
ax25 bctext "WGJBOX Corvallis, run by Johan, WG7J. (TCP/IP -> 44.26.1.20)"
#########################################################################
#ATTACH EXAMPLES. The ones uncommented are how I use things.
##Others should work for the appropriate hardware...
#attach an ethernet card that has a packet driver on interrupt 60
#give it 5 buffers, with a max data size of 1500 bytes
attach packet 60 lan 5 1500
#attach a serial port in ax25 mode, ie a kiss tnc
#use com2 (address 2f8, int 3), at 9600 bd, port is called '2m'
#set a mtu of 256 bytes, and use a receive buffer of 512 bytes
#(you can use 'asystat' command after you're up to see how much buffers
# is really used, and you can increment or decrement the 512 value. Look
# at the 'sw buf hi' field)
attach asy 2f8 3 ax25 2m 512 256 9600
#attach 2 ports of a 4 port (2 chip) Opto-SCC (PA0HZP) card at irq 7,
#base address 150, with intack vector at 168, and clock of 4.9Mhz
attach scc 2 init 150 4 2 0 1 168 7 p4915200
#attach port 0 as '440' with mtu=256, at 1200 bd, and buffersize of 350
attach scc 0 ax25 440 256 d1200 350
#attach scc 1 ax25 220 256 d1200 350
#attach pseudo netrom interface
attach netrom
#NET/ROM SETUP
netrom alias crvbbs
#interface 2m, qual 192, a non-verbose interface
netrom interface 2m 192 0
#interface 440, qual 224, broadcast routes with qual >= 195
netrom interface 440 224 195
netrom retries 5
netrom timer linear
#netrom load
netrom hidden no
#disconnect circuits after 10 minutes idle time
netrom tdisc 600
#Configure the interfaces attached above...
#configure the ip address for the lan, and set up the netmask,
#wich configures routes for systems on our lan
ifconfig lan ip 128.193.48.123
ifconfig lan netmask fffffe00
#set the broadcast address (for arp's etc.)
ifconfig lan broadcast 128.193.48.0
#use the default ip address for 2m, if you want a different one,
#uncomment next line
#ifconfig 2m ip 44.26.1.20
#setup the netmask, wich configures the routes to the local lan: 44.26.1/24 !
ifconfig 2m netmask 0xffffff00
#set the broadcast address, this is a don't care
ifc 2m broad 44.26.1.0
ifc 2m ax25 cdigi 2m
ifc 2m descr "SCC port 1 on 144.92 MHz"
#KISS setup to TNC called '2m'
#tx-delay (300 ms)
#param 2m 1 30
#persistence
#param 2m 2 63
#slot-time (160ms)
#param 2m 3 16
#tx-tail (50 ms)
#param 2m 4 5
#half duplex channel !
#param 2m 5 0
#you can set diferenct tcp protocol values per port, too
ifc 2m tcp mss 216
ifc lan tcp mss 384
#start servers
start ax25
start netrom
start telnet
start smtp
start ftp
start tty
start pop3
start convers
#set the remote server password, and start the remote server
remote -s password
start remote
#set the command recall buffer size (0 turns it off)
history 10
# MAILBOX SETUP
#configure the mailbox for forwarding. Set the header information
#our bbs address first, INCLUDING callsign ! (this field is a must!)
mbox haddress wg7j.or.usa.noam
#the remaining field could be omitted; lots of bbs strip this during forwarding
mbox qth Corvallis,OR
mbox fwdinfo Internet<->AX.25
mbox zip 97330
#by default, UTC time is assumed. For USA Pacific Time Standard, use
mbox utc -8
#forward smtp headers too!
mbox smtptoo on
#we want to add our own forward header (R:xxxxxxxxx)
mbox header on
#don't accept bulletins without bid's from bbs systems
mbox nobid off
#Optimize forwarding by checking the R: lines of incoming forwardings
bulletin check yes
#get the original date of the message from the R: line. Optimizes expiry !
bulletin date yes
#get the return bbs address of the user who sent the message from the R: line
bulletin return yes
#if we detect forward loops, hold a message after 1 loop
bulletin loophold 1
#forwat the forward process, and set the timer to every hour
start forward
mbox timer 3600
#if you want to start at a certain time after the hour, use the 'at' command
#eg. forward once every 30 minutes, starting at 20 minutes past the hour
#at 20 "mbox timer 1800"
#for remote sysops, set a password! This protects against users setting
#their call to a user that has sysop rights (an easy way out is to only
#give sysop privs to usernames > 6 chars, so they have to telnet in...)
mbox password 0123456789
#allow telnet,ax25,netrom connects from ax.25/netrom users only
#mbox secure on
#tell the users what areas have new mail upon login
mbox newmail on
#at the end of 'Sending' a message, ask them if they are sure
mbox sendquery on
#ask users to register if they are new to us.
mbox register on
#show the netrom id (if any) or ax25 call in the bbs prompt to new users
#(users can turn this of with XN command, wich becomes the new default)
mbox nrid on
#disconnect users after 10 minutes of idle time
mbox tdisc 600
#send a message before the login: prompt to telnet users
mbox tmsg "Please use you call sign to login..."
#you can hide ports from the 'Ports' listing in the mailbox
#mbox hideport 2m on
#you can dedicate certain ax.25 ports to certain types of users only :
#mbox noax25 440 on
#mbox bbsonly 2m on
#mbox usersonly lan on
#mbox sysoponly 2m on
#set the mbox attend flag, so users can initiate the 'operator' command
mbox attend on
#allow users to access the convers server with the "CONV" command
#(if the NO_CONVERS flag is set in their ftpusers permissions,
# this is still denied...)
mbox convers on
#activate ax.25 mail-for beacons
mbox mport 2m on
mbox mport 440 off
#activate ax.25 id beacons
ax25 bcport 2m on
ax25 bcport 440 off
#turn on digipeaters
ax25 digi 2m on
ax25 digi 440 on
#ax.25 heard logging:
ax25 hsize 10
ax25 hport 2m on
ax25 hport 440 on
#ip heard logging:
ip hsize 10
ip hport 2m on
ip hport 440 on
#configure the domain system
domain suffix ampr.org.
domain translate off
#the domain servers, if any
#the last parameter is a timeout (in seconds) for the server access
#domain addserver 44.26.1.16 60
#domain addserver 128.193.48.1 30
#we want to be the domain server !
#domain dns on
#SMTP setup
#don't beep for incoming mail!
smtp quiet yes
#route mail ourself
smtp mode route
#try to send batches to a host
smtp batch on
#time out mail delivery after 5 minutes
smtp t4 300
#if all else fails, send mail to the gateway after t4 seconds
smtp gateway 44.26.1.16
#kick any mail that might be in our spool from external mail and such
smtp kick
#allow 10 minutes idle in the ftp server (disabled during file transfer!)
ftptdisc 600
#start some cycles at a certain time
# expire messages once a day, each night at 1pm (i'm using utc time)
at 0900 "expire 24"
#delete old bid's once a day, every night at 2pm, limit is 21 days
at 1000 "oldbid 24 21"
##finally tell the netrom network we're there !!
netrom bcnodes 2m
netrom bcnodes 440
#poll other jnos and jnos40 nodes for their routes
netrom bcpoll 2m
netrom bcpoll 440
#turn on logging to the /logs dir. One file per day !
log on
#turn on error mail messages to sysop
#if the option is compiled in
#mailerror on
trace loopback 211
trace 2m 211
strace off